//
//  CYCallHistory.m
//  CreditAddressBook
//
//  Created by Lee on 15/6/1.
//  Copyright (c) 2015年 Lee. All rights reserved.
//

#import "CYCallHistory.h"
#import "MJExtension.h"
//#import "CYDialTool.h"
#import "CYDatabase.h"

@implementation CYCallHistory

MJCodingImplementation

+ (NSDictionary *)replacedKeyFromPropertyName {
    return @{@"callId": @"id"};
}

- (void)save {
    [[CYDatabase sharedDatabase] addCallHistory:self];
}

- (void)update {
    [[CYDatabase sharedDatabase] updateCallHistory:self];
}
@end
